// Decompiled with JetBrains decompiler
// Type: Communication.AbstractCommunicationMessageHandler
// Assembly: FMCommon, Version=1.0.8663.21262, Culture=neutral, PublicKeyToken=null
// MVID: 52773074-FB09-4BA0-8FA9-4782D11D6C17
// Assembly location: /Users/mac/work/RiverGame/com.rivergame.fmframework/Runtime/Plugins/FMCommon.dll

namespace Communication
{
    public abstract class AbstractCommunicationMessageHandler : ICommunicationMessageHandler
    {
        private CommunicationManager communicationManager;

        public abstract int GetMessageID();

        public abstract void HandleMessage(object message, long responseTime);

        protected void SendMessage(object message)
        {
            this.communicationManager.SendMessage(message);
        }

        internal void SetCommunicationManager(CommunicationManager communicationManager)
        {
            this.communicationManager = communicationManager;
        }
    }
}
